package world.criver.h50909.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import world.criver.h50909.dao.daoDelete;
import world.criver.h50909.entity.entName;
import world.criver.h50909.response.resStatus;
import world.criver.h50909.tool.toolEquipmentInfo;
import world.criver.h50909.tool.toolModelInfo;

@Service
public class serDelete implements daoDelete {
    @Autowired
    private toolEquipmentInfo toolEquipmentInfo;
    @Autowired
    private toolModelInfo toolModelInfo;
    @Override
    public resStatus equipment(entName info) {
        return new resStatus(toolEquipmentInfo.delete(info.getName()));
    }

    @Override
    public resStatus model(entName info) {
        return new resStatus(toolModelInfo.delete(info.getName()));
    }
}